package com.jl.commons.result;

/**
 * 统一返回结果
 */
public class ResultData {
    /**
     * 返回的内容
     */
    private Object content;

    /**
     * 是否请求成功
     */
    private boolean success;
    /**
     * 错误码
     */
    private Integer errorCode;
    /**
     * 错误内容
     */
    private String errorMsg;

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
